package com.servcice;

import com.dao.TeacherDao;
import com.dto.BaseDto;
import com.entity.Teacher;
import com.page.PageInfo;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

public interface TeacherService extends  AccountService{
    public BaseDto<Teacher> getAll() throws Exception;
    public int addTeacher(Teacher teacher) throws Exception;
    public BaseDto<Teacher> getTeachersByPage(PageInfo pageInfo,String cacheId) throws Exception;
    public BaseDto<Teacher> searchTeacherByName(String name,PageInfo pageInfo) throws Exception;
    public BaseDto selectTeacherWithScsAndCourse(String sno)throws Exception;

    //使用用户名登录
    public Teacher loginTeacherByTname(String tname) throws Exception;
}
